package com.mryao.gxkygl.common.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mryao.gxkygl.common.base.entity.BaseEntity;

@Entity
@Table(name = BaseEntity.TABLE_PREFIX + "SYSLOG")
public class SysLog extends BaseEntity{

	private static final long serialVersionUID = -6309732882044872298L;
	
	//用户名
	@Column(name="username")
	private String username;
	
	//url
	@Column(name="url")
	private String url;
	
	//时长
	@Column(name="time")
	private Integer time;
	
	//方法名
	@Column(name="method")
	private String method;
	
	//参数
	@Column(name="params")
	private String params;
	
	//ip地址
	@Column(name="ip")
	private String ip;
	
	//创建时间
	@Column(name="createtime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	
	//调用次数
	@Column(name="count")
	private Integer count;
	
	
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}

	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getTime() {
		return time;
	}
	public void setTime(Integer time) {
		this.time = time;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}
